<?php

class Station implements JsonSerializable
{
	private $stationId;
	private $currentTime;
	private $numberOfPassenger;
	private $distributionType;
	private $distributionParams;

	public function __construct( $stationId ,$currentTime,$numberOfPassenger,$distributionType,$distributionParams)
	{
		$this->setStationId($stationId);
		$this->setCurrentTime($currentTime);
		$this->setNumberOfPassenger($numberOfPassenger);
		$this->setDistributionType($distributionType);
		$this->setDistributionParams($distributionParams);
	}

	public function getStationId()
	{
		return $this->stationId;
	}

	public function setStationId($stationId)
	{
		$this->stationId = $stationId;
	}

	public function getCurrentTime()
	{
		return $this->currentTime;
	}

	public function setCurrentTime($currentTime)
	{
		$this->currentTime = $currentTime;
	}
	
	public function getNumberOfPassenger()
	{
		return $this->numberOfPassenger;
	}

	public function setNumberOfPassenger($numberOfPassenger)
	{
		$this->numberOfPassenger = $numberOfPassenger;
	}
	
	public function getDistributionType()
	{
		return $this->distributionType;
	}

	public function setDistributionType($distributionType)
	{
		$this->distributionType = $distributionType;
	}
	
	public function getDistributionParams()
	{
		return $this->distributionParams;
	}

	public function setDistributionParams($distributionParams)
	{
		$this->distributionParams = $distributionParams;
	}

	public function jsonSerialize()
	{
		$data = array();
		$data['stationId'] = $this->stationId;
		$data['currentTime'] = $this->currentTime;
		$data['numberOfPassenger'] = $this->numberOfPassenger;
		$data['distributionType'] = $this->distributionType;
		$data['distributionParams'] = $this->distributionParams;
		return $data;
	}
}

?>